<table width="100%" cellpadding="0" cellspacing="0">
<tr>
			{**************** TURINIO REDAGAVIMAS ***************}
			{if $smarty.get.id>0}
			<td width="1">
			{if ($smarty.get.tpl_action=='edit_content' || $type_group || !$smarty.get.tpl_action) &&  $smarty.get.tpl_action!='show_comments'  && $smarty.get.tpl_action!='aditionalelements'  &&  $smarty.get.tpl_action!='show_elements'}
			<span style="width:130px;  background:#DBE1E5">
			<table width="100%" height="25" cellpadding="0" cellspacing="0">
				<tr>
					<td style="background:#DBE1E5; border:1px solid #C4CDD2; border-bottom-color:#DBE1E5; padding:0px 10px 0px 10px; color:#000000; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=edit_content&id={$data.page.id}" target="_self">{t t='Turinio redagavimas'}</a></td>
				</tr>
			</table>
			</span>
			{else}
			<span style="width:130px; height:25px;">
			<table width="100%" height="25" cellpadding="0" cellspacing="0">
				<tr>	
					<td bgcolor="#fffff" height="2"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
				</tr>
				<tr>
					<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
					<td bgcolor="#EDF0F2" style="padding:0px 10px 0px 10px; color:#767879; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=edit_content&id={$data.page.id}" target="_self">{t t='Turinio redagavimas'}</a></td>
					<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				</tr>
				<tr>	
					<td bgcolor="#fffff" height="1"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
				</tr>
				<tr>
					<td bgcolor="#C4CDD2" height="1" colspan="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>				
				</tr>
			</table>
			</span>		
			{/if}
			</td>
			{/if}
			
			{**************** ELEMENTAI ************************}
			{if $data.page.id>0 && $has_elements}
			{foreach from=$data.tree.childtypes item="item"}
			<td width="1">
			{if $smarty.get.element_type==$item.type_of_value|md5}
			<span style="width:130px; background:#DBE1E5">
			<table width="100%" height="25" cellpadding="0" cellspacing="0">
				<tr>
					<td style="background:#DBE1E5; border:1px solid #C4CDD2; border-bottom-color:#DBE1E5; padding:0px 10px 0px 10px; color:#000000; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=edit_content&id={$data.page.id}" target="_self">{t t=$item.type_of_value}</a></td>
				</tr>
			</table>
			</span>
			{else}
			<span style="width:130px; height:25px;">
			<table width="100%" height="25" cellpadding="0" cellspacing="0">
				<tr>	
					<td bgcolor="#fffff" height="2"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
				</tr>
				<tr>
					<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
					<td bgcolor="{if $item.value!=""}{$item.value}{else}#EDF0F2{/if}" style="padding:0px 10px 0px 10px; color:#767879; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=show_elements&id={$data.page.id}&amp;element_type={$item.type_of_value|md5}" target="_self">{t t=$item.type_of_value}</a></td>
					<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				</tr>
				<tr>	
					<td bgcolor="#fffff" height="1"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
				</tr>
				<tr>
					<td bgcolor="#C4CDD2" height="1" colspan="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>				
				</tr>
			</table>
			</span>
			{/if}
			</td>		
			{/foreach}
			{/if}
		
			{**************** VIDINIAI PUSLAPIAI ***************}
			{if !$type_group}		
			{if $data.admins.cur.mod[1] || (!$data.admins.cur.mod[1] && !$_var.vovka_mode)}	{* Neleiskime redaguoti vaiku, jei ijungta vovka mode ir sitas administratorius yra kastruotas *}	
				<td width="1">		
				{if $smarty.get.tpl_action=='show_childs'}
				<span style="width:130px;  background:#DBE1E5">
				<table width="100%" height="25" cellpadding="0" cellspacing="0">
					<tr>
						<td style="background:#DBE1E5; border:1px solid #C4CDD2; border-bottom-color:#DBE1E5; padding:0px 10px 0px 10px; color:#000000; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=show_childs&id={$data.page.id}" target="_self">{t t='Vidiniai puslapiai'}</a></td>
					</tr>
				</table>
				</span>
				{else}
				<span style="width:130px; height:25px;">
				<table width="100%" height="25" cellpadding="0" cellspacing="0">
					<tr>	
						<td bgcolor="#fffff" height="2"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
					</tr>
					<tr>
						<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
						<td bgcolor="#EDF0F2" style="padding:0px 10px 0px 10px; color:#767879; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=show_childs&id={$data.page.id}" target="_self">{t t='Vidiniai puslapiai'}</a></td>
						<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
					</tr>
					<tr>	
						<td bgcolor="#fffff" height="1"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
					</tr>
					<tr>
						<td bgcolor="#C4CDD2" height="1" colspan="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>				
					</tr>
				</table>
				</span>		
				{/if}	
				</td>
			{/if}		
		{/if}
		
		{**************** INFORMACINIAI BLOKAI ***************}
		{if $site_permission.main_blocks == 1}
			<td width="1">
			{if $smarty.get.tpl_action=='aditionalelements'}
			<span style="width:130px;  background:#DBE1E5">
			<table width="100%" height="25" cellpadding="0" cellspacing="0">
				<tr>
					<td style="background:#DBE1E5; border:1px solid #C4CDD2; border-bottom-color:#DBE1E5; padding:0px 10px 0px 10px; color:#000000; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=aditionalelements&id={$data.page.id}&lang={$data.tree.lng.cur}" target="_self">{t t='Informacijos blokai'}</a></td>
				</tr>
			</table>
			</span>
			{else}
			<span style="width:130px; height:25px;">
			<table width="100%" height="25" cellpadding="0" cellspacing="0">
				<tr>	
					<td bgcolor="#fffff" height="2"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
				</tr>
				<tr>
					<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
					<td bgcolor="#EDF0F2" style="padding:0px 10px 0px 10px; color:#767879; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=aditionalelements&id={$data.page.id}" target="_self">{t t='Informacijos blokai'}</a></td>
					<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				</tr>
				<tr>	
					<td bgcolor="#fffff" height="1"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
				</tr>
				<tr>
					<td bgcolor="#C4CDD2" height="1" colspan="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>				
				</tr>
			</table>
			</span>		
			{/if}
			</td>
		{/if}
		
		{if $type_group}
		<td width="1">				
		<table width="140" height="25" cellpadding="0" cellspacing="0">
			<tr>	
				<td bgcolor="#fffff" height="2"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
			</tr>
			<tr>
				<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				<td bgcolor="#EDF0F2" style="padding:0px 10px 0px 10px; color:#767879; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=show_elements&id={$data.page.parent}&amp;element_type={$data.page.type|md5}{if $smarty.get.element_list_page_nr}&element_list_page_nr={$smarty.get.element_list_page_nr}{/if}" target="_self">{t t='Išeiti iš elemento'}</a></td>
				<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			</tr>
			<tr>	
				<td bgcolor="#fffff" height="1"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
			</tr>
			<tr>
				<td bgcolor="#C4CDD2" height="1" colspan="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>				
			</tr>
		</table>
		</td>
		{/if}
		
		
		{**************** KOMENTARAI ***************}
		{ext->is_have_comments type=$data.page.type assign="is_comments"}
		{if ($is_comments) && ($site_permission.main_comments == 1)}
		<td width="1">		
		{if $smarty.get.tpl_action=='show_comments'}
		<span style="width:130px;  background:#DBE1E5">
		<table width="100%" height="25" cellpadding="0" cellspacing="0">
			<tr>
				<td style="background:#DBE1E5; border:1px solid #C4CDD2; border-bottom-color:#DBE1E5; padding:0px 10px 0px 10px; color:#000000; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=show_comments&id={$data.page.id}" target="_self">{t t='Komentarai'}</a></td>
			</tr>
		</table>
		</span>
		{else}
		<span style="width:130px; height:25px;">
		<table width="100%" height="25" cellpadding="0" cellspacing="0">
			<tr>	
				<td bgcolor="#fffff" height="2"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
			</tr>
			<tr>
				<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				<td bgcolor="#EDF0F2" style="padding:0px 10px 0px 10px; color:#767879; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=show_comments&id={$data.page.id}" target="_self">{t t='Komentarai'}</a></td>
				<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			</tr>
			<tr>	
				<td bgcolor="#fffff" height="1"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
			</tr>
			<tr>
				<td bgcolor="#C4CDD2" height="1" colspan="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>				
			</tr>
		</table>
		</span>
		{/if}
		</td>
		{/if}
		
		
		{**************** SPACER ***************}
		<td height="25" valign="bottom"><div style="border-bottom: 1px solid #C4CDD2;">&nbsp;</div></td>	

		{if $_var.keywords == 1 && $data.page.id > 0}
		<td width="1">		
		{if $smarty.get.tpl_action=='show_metatags'}
		<span style="width:130px;  background:#DBE1E5">
		<table width="100%" height="25" cellpadding="0" cellspacing="0">
			<tr>
				<td style="background:#DBE1E5; border:1px solid #C4CDD2; border-bottom-color:#DBE1E5; padding:0px 10px 0px 10px; color:#000000; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=show_metatags&id={$data.page.id}" target="_self">{t t='Metatags'}</a></td>
			</tr>
		</table>
		</span>
		{else}
		<span style="width:130px; height:25px;">
		<table width="100%" height="25" cellpadding="0" cellspacing="0">
			<tr>	
				<td bgcolor="#fffff" height="2"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
			</tr>
			<tr>
				<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				<td bgcolor="#EDF0F2" style="padding:0px 10px 0px 10px; color:#767879; text-align:center"><nobr><a href="index.php?admin=1&tpl_action=show_metatags&id={$data.page.id}" target="_self">{t t='Metatags'}</a></td>
				<td width="1" bgcolor="#ffffff"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			</tr>
			<tr>	
				<td bgcolor="#fffff" height="1"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
			</tr>
			<tr>
				<td bgcolor="#C4CDD2" height="1" colspan="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>				
			</tr>
		</table>
		</span>
		{/if}
		</td>
		{/if}
		
	</tr>
</table>
